//
//  AppDelegate.m
//  12-StoryBoard(SB)
//
//  Created by Snow on 16/7/29.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    //storyboard
    //1.与xib相同的是 都属于可视化编程
    //2.与xib不同 SB.是多视图控制器管理 xib是单视图管理
    //3.singleview application会自动生成2个SB 文件
    //main.storyboard 主要的视图控制器 系统默认为main
    //launchScreen.storyboard 启动屏幕页视图管理(在xcode7以前 生成的是.xib文件)
    //4 如果使用SB开发 就不需要创建window
    
    //main.storyboard
    //系统默认main为整个程序的入口
    //main.SB 默认viewController 为 整个storyboard的入口
    
    //自定义SB
    //工程里可以含多个storyboard
    //工程中的main.storyboard 可以修改成自定义的storyboard
    //1.让storyboard有个初始的VC
    //2.让VC对应关联类
    
    //sb中提供的界面跳转是单向的
//    1.UIStoryboardSegue  用来执行页面跳转
    //2.如果要使页面跳转变为双向 需要自己定义UIstoryboard
    //3.自定义时 必须重写- (void)perform 方法
    //3.自定义完成后 系统会自动识别到storyboard中
    
    //系统的界面跳转
    //show 根据是否包含navigation 决定跳转方式
    //show Detail 显示present效果
    //present 模态效果
    
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end
